import { DataProvider } from "../../../../fl/data/DataProvider";
import { ObjCreate } from "../common/ObjCreate";
import { ImagesConst } from "../../resource/ImagesConst";
import { Language } from "../../../../extend/language/Language";
import { GlobalStyle } from "../../../common/global/GlobalStyle";
import { InExShopLatestCellRenderer } from "./InExShopLatestCellRenderer";
import { GTextFiled } from "../../../../com/mui/controls/GTextFiled";
import { GTileList } from "../../../../com/mui/controls/GTileList";
//class InExShopLatestPanel
    
    export  class InExShopLatestPanel /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.init();
            return;
        }

        public updateDataList(arg1: Array<any>): void
        {
            this._tileList.dataProvider = new DataProvider(arg1);
            return;
        }

        /* internal  */init(): void
        {
            ObjCreate.createBg(0, 0, 400, 75, this, ImagesConst.SelectedBg);
            ObjCreate.createBitmap(ImagesConst.Fire, 50, 0, this);
            var loc1=Language.getString(35046);
            this._tipTxt = ObjCreate.createGTextField("", 75, 5, 400, 20, this, GlobalStyle.textFormat6);
            this._tipTxt.htmlText = loc1;
            var loc2=0;
            while (loc2 < 8) 
            {
                ObjCreate.createBg(15 + loc2 * 46, 30, 38, 38, this, ImagesConst.PackItemBg);
                ++loc2;
            }
            this._tileList = ObjCreate.createTileList(15, 30, 382, 38, this);
            this._tileList.columnWidth = 46;
            this._tileList.rowHeight = 38;
            this._tileList.setStyle("cellRenderer", InExShopLatestCellRenderer);
            return;
        }

        /* internal */ /* var */_tipTxt: GTextFiled;

        /* internal */ /* var */_tileList: GTileList;
    }
